﻿@using FCTC_Web.Controllers.Business.BusinessModel
@model DefaultModel
@{
    ViewBag.Title = "Home";
    Layout = "~/Views/Shared/_Business.cshtml";

}
<link href="@Url.Content("~/Content/index.css")" rel="stylesheet" type="text/css" />
@*   <link href="@Url.Content("~/Content/VehicleExchange/index.css")" rel="stylesheet" type="text/css" />*@
<link href="@Url.Content("~/Content/Index/style.css")" rel="stylesheet" type="text/css" />
@*<link href="@Url.Content("~/Content/VehicleExchange/style.css")" rel="stylesheet" type="text/css" />*@
<script type="text/javascript" language="javascript">
    function selectTag(showContent, selfObj) {
        // 操作标签
        var tag = document.getElementById("tags").getElementsByTagName("li");
        var taglength = tag.length;
        for (i = 0; i < taglength; i++) {
            tag[i].className = "";
        }
        selfObj.parentNode.className = "selectTag";
        // 操作内容
        for (i = 0; j = document.getElementById("tagContent" + i); i++) {
            j.style.display = "none";
        }
        document.getElementById(showContent).style.display = "block";


    }
</script>
<div class="content">
    <div class="content_left">
        <div class="carousel">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="scriptmain" name="scriptmain"
                codebase="http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=6,0,29,0" width="310" height="271">
                <param name="movie" value="bcastr.swf?bcastr_xml_url=xml/bcastr.xml" />
                <param name="quality" value="high" />
                <param name="scale" value="noscale" />
                <param name="LOOP" value="false" />
                <param name="menu" value="false" />
                <param name="wmode" value="transparent" />
                <embed src="bcastr.swf?bcastr_xml_url=xml/bcastr.xml" width="310" height="271" loop="False"
                    quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"
                    salign="T" name="scriptmain" menu="false" wmode="transparent"></embed>
            </object>
        </div>
        <div class="shipin">
            <div class="shipin_left">
                视<p>
                    频</p>
            </div>
            <div class="shipin_right">
                <ul>
                    <li><a href="http://v.youku.com/v_show/id_XMjkxNjMzNzg0.html" target="_blank">兰博广告视频</a>
                    </li>
                    <li><a href="http://v.youku.com/v_show/id_XMzE0MjU2NzUy.html" target="_blank">改装车秒杀法拉利</a></li>
                    <li><a href="http://v.youku.com/v_show/id_XMzE5ODk0NTI4.html" target="_blank">瑞纳上市力宏献唱</a></li>
                    <li><a href="http://v.youku.com/v_show/id_XMjI5ODE2OTI0" target="_blank">荣威350享3G生活</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="content_center">
        <div class="new_news_1">
            <a href="#">二手车市场新闻</a></div>
        <div class="new">
            <div class="new_news_4">
                <img src="/images/new_news_2.png" width="57" height="57" alt="new" /></div>
        </div>
        <div class="new_news_2">
            <dl>
                <dt>
                    @if (Model.MarketNews.Count > 0 && Model.MarketNews[0].Imgs.Count > 0)
                    {
                        <a href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[0].ID })">
                            <img src="@Url.Action("ShowImage", "Image", new { id = Model.MarketNews[0].Imgs[0].ID })"  width="92" height="116" alt="tuijian" />
                        </a>
                    }
                    else
                    {
                        if (Model.MarketNews.Count > 0)
                        {
                            <a href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[0].ID })">
                           <img src="/images/new_news_4.jpg" width="104" height="79" alt="new" /> </a>
                        }
                    }
                </dt>
                <dd>
                    <ul>
                        <span>
                            @if (Model.MarketNews.Count > 0)
                            {
                                <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[0].ID })">
                                    ·@Model.MarketNews[0].HeadLine</a> </li>
                             
                            }</span>
                        @for (int i = 1; i < 4 && i < Model.MarketNews.Count; i++)
                        {
                            <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[i].ID })">
                                ·@Model.MarketNews[i].HeadLine</a> </li>
                        }
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt>
                    @if (Model.MarketNews.Count > 3 && Model.MarketNews[4].Imgs.Count > 0)
                    {
                        <a href="@Url.Action("Details", "estimatorDefault", new { id = Model.MarketNews[4].ID })">
                            <img src="@Url.Action("ShowImage", "Image", new { id = Model.MarketNews[4].Imgs[0].ID })"  width="92" height="116" alt="tuijian" />
                        </a>
                    }
                    else
                    {
@*  <a href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[4].ID })">*@
                        <img src="/images/new_news_4.jpg" width="104" height="79" alt="new" />
@* </a>*@
                    }
                </dt>
                <dd>
                    <ul>
                        <span>
                            @if (Model.MarketNews.Count > 3)
                            {
                                <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[4].ID })">
                                    ·@Model.MarketNews[4].HeadLine</a> </li>
                             
                            }</span>
                        @for (int i = 5; i < 8 && i < Model.MarketNews.Count; i++)
                        {
                            <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[i].ID })">
                                ·@Model.MarketNews[i].HeadLine</a> </li>
                        }
                    </ul>
                </dd>
            </dl>
        </div>
        <div class="new_news_3">
            <ul>
                @for (int i = 9; i < Model.MarketNews.Count && i < 15; i++)
                { 
                    <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.MarketNews[i].ID })">
                        @Model.MarketNews[i].HeadLine</a> </li>
                }
            </ul>
        </div>
    </div>
    <div class="content_right">
        <div class="content_right_2">
            <a href="http://v.youku.com/v_show/id_XMjQxNDc5Mjcy.html" target="_blank">
                <img src="/images/new_tu.gif" width="233" height="155" alt="tu" /></a>
        </div>
        <div class="content_right_3">
            <div class="content_right_4">
                <a href="@Url.Action("Build", "Default")">
                    <img src="/images/more2.gif" width="49" height="19" /></a><p>
                        周末秒杀</p>
            </div>
            <div class="content_right_5">
                <div class="content_right_6">
                    <img src="/images/miaosha_4.jpg" width="201" height="88" alt="tu" /></div>
                <div class="content_right_7">
                    <a href="#">
                        <img src="/images/miaosha_3.jpg" width="102" height="27" alt="anniu" /></a></div>
            </div>
        </div>
    </div>
</div>
@Html.Partial(@"~\views\shared\Business\DefaultShowEstimator.cshtml", Model)
<div class="content_center_3">
    @Html.Partial(@"~\views\shared\Business\DefaultShowVehicle.cshtml", Model)
    <div id="tab02">
        <div class="content_right_4">
            <a href="#">
                <img src="/images/more2.gif" width="49" height="19" /></a>
            <p>
                二手车旗舰店</p>
        </div>
        <div class="chehang">
            @for (int i = 0; i < 9 && i < Model.Banners.RecommandedSecondHandVehicleShop.Count; i++)
            {
                @Html.Partial(@"~\views\shared\business\Banners\SecondHandShopBanner.cshtml", Model.Banners.RecommandedSecondHandVehicleShop[i])
            }
        </div>
    </div>
    <div class="clear">
    </div>
</div>
<div class="con4">
    <!--------左边----------->
    <div class="con4_left">
        <div class="con4_banner1">
            <img src="/images/con4_banner1.jpg" width="719" height="93" alt="广告" /></div>
        <!------爱车问问/热点新闻----------->
        <div class="con4_left_1">
            <div class="con4_left_box1">
                <div class="con4_left_box1_bt">
                    <div class="con4_left_box1_bt1">
                    </div>
                    <div class="con4_left_box1_bt2">
                        <a href="#" class="con4_left_box1_bt2_2">
                            <img src="/images/more1.gif" width="49" height="14" /></a><a href="#" class="con4_left_box1_bt2_1">爱车问问</a>
                    </div>
                    <div class="con4_left_box1_bt3">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="con4_left_box1_box">
                    @*<div class="box1_box_Search">
                        <input type="text" class="box1_box_Search1" />
                        <input type="image" class="box1_box_Search2" src="/images/box1_box_Search2.png" />
                    </div>*@
                    <ul>
                        @for (int i = 0; i < Model.QA.Count && i < 6; i++)
                        {
                            <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.QA[i].ID })">
                                ·@Model.QA[i].HeadLine</a> </li>
                        }
                    </ul>
                    <div class="clear">
                    </div>
                    <div class="box1_box2">
                        <a class="box1_box2_left" href="#">品牌：</a>
                        <ul>
                            @for (int i = 0; i < Model.Brands.Count && i < 15; i++)
                            {
                                <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.Brands[i].ID })">
                                    ·@Model.Brands[i].HeadLine</a> </li>
                            }
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="box1_box2">
                        <a class="box1_box2_left" href="#">文档信息：</a>
                        <ul>
                            @for (int i = 0; i < Model.Documents.Count && i < 8; i++)
                            {
                                <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.Documents[i].ID })">
                                    ·@Model.Documents[i].HeadLine</a> </li>
                            }
                        </ul>
                    </div>
                </div>
            </div>
            <div class="con4_left_box2">
                <div class="con4_left_box1_bt">
                    <div class="con4_left_box1_bt1">
                    </div>
                    <div class="con4_left_box2_bt2">
                        <a href="#" class="con4_left_box1_bt2_2">
                            <img src="/images/more1.gif" width="49" height="14" /></a><a href="#" class="con4_left_box1_bt2_1">新车新闻</a>
                    </div>
                    <div class="con4_left_box1_bt3">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="con4_left_box2_box">
                    <div class="box_box2_Search">
                        <a href="http://v.youku.com/v_show/id_XMzI2MDU3NTMy.html">视频：客户与爱车的红娘：评估师介绍<a>
                    </div>
                    <ul>
                        @for (int i = 0; i < Model.NewVechiles.Count && i < 16; i++)
                        {
                            <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.NewVechiles[i].ID })">
                                ·@Model.NewVechiles[i].HeadLine</a> </li>
                        }
                    </ul>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <!------------------4S店促销/拍卖动态----------------->
        <div class="con4_left_1">
            <div class="con4_left_box1">
                <div class="con4_left_box1_bt">
                    <div class="con4_left_box1_bt1">
                    </div>
                    <div class="con4_left_box1_bt2">
                        <a href="#" class="con4_left_box1_bt2_2">
                            <img src="/images/more1.gif" width="49" height="14" /></a><a href="#" class="con4_left_box1_bt2_1">4S促销</a>
                    </div>
                    <div class="con4_left_box1_bt3">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="con4_left_box1_box">
                    <div class="box1_box3_Search">
                        <a href="#">
                            <img src="/images/pic1.jpg" width="283" height="76" /></a></div>
                    <ul>
                        @for (int i = 0; i < Model.Discount4S.Count && i < 16; i++)
                        {
                            <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.Discount4S[i].ID })">
                                ·@Model.Discount4S[i].HeadLine</a> </li>
                    
                        }
                    </ul>
                </div>
            </div>
            <div class="con4_left_box2">
                <div class="con4_left_box1_bt">
                    <div class="con4_left_box1_bt1">
                    </div>
                    <div class="con4_left_box2_bt2">
                        <a href="#" class="con4_left_box1_bt2_2">
                            <img src="/images/more1.gif" width="49" height="14" /></a><a href="#" class="con4_left_box1_bt2_1">车市政策</a>
                    </div>
                    <div class="con4_left_box1_bt3">
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div class="con4_left_box2_box">
                    <div class="box_box2_Search">
                        @if (Model.Policies.Count > 0)
                        {
                            <a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.Policies[0].ID })">
                                ·@Model.Policies[0].HeadLine</a> 
                        }
                    </div>
                    <ul>
                        @for (int i = 1; i < Model.Policies.Count && i < 17; i++)
                        {
                            <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.Policies[i].ID })">
                                ·@Model.Policies[i].HeadLine</a> </li>
                    
                        }
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-------右边--------->
    <div class="con4_right">
        <div class="con4_right1">
            <div class="content_right_4">
                <a href="#">
                    <img src="/images/more2.gif" width="49" height="19" /></a>
                <p>
                    精彩活动</p>
            </div>
            <div class="con4_right1_box">
                <a href="#">
                    <img src="/images/pic2.jpg" width="197" height="90" /></a>
                <ul>
                    @for (int i = 0; i < Model.VehicleShows.Count && i < 8; i++)
                    {
                        <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.VehicleShows[i].ID })">
                            ·@Model.VehicleShows[i].HeadLine</a> </li>
                    
                    }
                </ul>
            </div>
        </div>
        <div class="con4_right2">
            <div class="content_right_4">
                <a href="#">
                    <img src="/images/more2.gif" width="49" height="19" /></a>
                <p>
                    置换合作商</p>
            </div>
            <div class="con4_right2_box">
                @if (Model.Banners.Recommanded4S != null)
                {
                    <ul>
                        @for (int i = 0; i < Model.Banners.Recommanded4S.Count && i < 5; i++)
                        { 
                            <li>@Html.Partial(@"~\views\shared\business\Banners\ShopBanner.cshtml", Model.Banners.Recommanded4S[i])</li>
                        }
                    </ul>
                }
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
</div>
<!-----con5-------->
<div class="con5">
    <div class="zuixin_left">
        @Html.Partial(@"~\views\shared\Business\DefaultSpecialCar.cshtml")
        @Html.Partial(@"~\views\shared\Business\DefaultBusinessCar.cshtml")
    </div>
    <div class="con5_right">
        <div class="con5_right_2">
            <div class="content_right_4">
                <a href="#">
                    <img src="/images/more2.gif" width="49" height="19" /></a>
                <p>
                    活动</p>
            </div>
            <div class="con5_right_2_3">
                <ul>
                    @for (int i = 0; i < Model.Activities.Count && i < 9; i++)
                    {
                        <li><a target="_blank"  href="@Url.Action("Article", "Articles", new { id = Model.Activities[i].ID })">
                            ·@Model.Activities[i].HeadLine</a> </li>
                    }
                </ul>
            </div>
        </div>
        <div class="con5_right_3">
            <a href="http://dealer.bitauto.com/100018304/" target="_blank">
                <img src="/images/banner_3.jpg" alt="tu" width="231" height="169" /></a></div>
    </div>
</div>
@Html.Partial(@"~\views\shared\business\BusinessCommonFoot.cshtml")
<script type="text/javascript">
<!--
    function Pid(id, tag) {
        if (!tag) {
            return document.getElementById(id);
        }
        else {
            return document.getElementById(id).getElementsByTagName(tag);
        }
    }

    function tab(id, hx, box, iClass, s, pr) {
        var hxs = Pid(id, hx);
        var boxs = Pid(id, box);
        if (!iClass) { // 如果不指定class，则：
            boxsClass = boxs; // 直接使用box作为容器
        }
        else { // 如果指定class，则：
            var boxsClass = [];
            for (i = 0; i < boxs.length; i++) {
                if (boxs[i].className.match(/\btab\b/)) {// 判断容器的class匹配
                    boxsClass.push(boxs[i]);
                }
            }
        }
        if (!pr) { // 如果不指定预展开容器，则：
            go_to(0); // 默认展开序列
            yy();
        }
        else {
            go_to(pr);
            yy();
        }
        function yy() {
            for (var i = 0; i < hxs.length; i++) {
                hxs[i].temp = i;
                if (!s) {// 如果不指定事件，则：
                    s = "onmouseover"; // 使用默认事件
                    hxs[i][s] = function () {
                        go_to(this.temp);
                    }
                }
                else {
                    hxs[i][s] = function () {
                        go_to(this.temp);
                    }
                }
            }
        }
        function go_to(pr) {
            for (var i = 0; i < hxs.length; i++) {
                if (!hxs[i].tmpClass) {
                    hxs[i].tmpClass = hxs[i].className += " ";
                    boxsClass[i].tmpClass = boxsClass[i].className += " ";
                }
                if (pr == i) {
                    hxs[i].className += " up"; // 展开状态：标题
                    boxsClass[i].className += " up"; // 展开状态：容器
                }
                else {
                    hxs[i].className = hxs[i].tmpClass;
                    boxsClass[i].className = boxsClass[i].tmpClass;
                }
            }
        }
    }
    tab("tab02", "h4", "ul");
//-->
</script>
<!--[if IE 6]> 
<script>
function correctPNG() 
{
for(var i=0; i<document.images.length; i++)
{
var img = document.images[i];
var imgName = img.src.toUpperCase();
if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
{
var imgID = (img.id) ? "id='" + img.id + "' " : "";
var imgClass = (img.className) ? "class='" + img.className + "' " : "";
var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
var imgStyle = "display:inline-block;" + img.style.cssText;
if (img.align == "left") imgStyle = "float:left;" + imgStyle;
if (img.align == "right") imgStyle = "float:right;" + imgStyle;
if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle;
var strNewHTML = "<span "+ imgID + imgClass + imgTitle + "style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" + "(src='" + img.src + "', sizingMethod='scale');\"></span>";
img.outerHTML = strNewHTML;
i = i-1;
}
}
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->
​ 